#include <WinTen.h>
#include <Windows.h>
#include <ClipApi.h>

//----------------------------------------------------------------------------//

CLIPPER DPTOLP()
{
   POINT pt;                             // just one point
   BOOL  bOk;

   pt.y = _parni( 2, 2 );
   pt.x = _parni( 2, 1 );

   bOk = DPtoLP( ( HDC ) _parni( 1 ), ( LPPOINT ) &pt, 1 );
   _retl( bOk );

   if( bOk )
   {
      _storni( pt.y, 2, 2 );
      _storni( pt.x, 2, 1 );
   }
}

//----------------------------------------------------------------------------//

CLIPPER LPTODP()
{
   POINT pt;                             // just one point
   BOOL  bOk;

   pt.y = _parni( 2, 2 );
   pt.x = _parni( 2, 1 );

   bOk = LPtoDP( ( HDC ) _parni( 1 ), ( LPPOINT ) &pt, 1 );
   _retl( bOk );

   if( bOk )
   {
      _storni( pt.y, 2, 2 );
      _storni( pt.x, 2, 1 );
   }
}

//----------------------------------------------------------------------------//
